package cn.codergege.demo

import org.springframework.boot.CommandLineRunner
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.context.annotation.Bean

@SpringBootApplication
class Spring2Demo01QuickstartKotlinApplication {
    @Bean
    fun init() = CommandLineRunner {
        println("CommandLineRunner runs ...")
    }
}

fun main(args: Array<String>) {
    runApplication<Spring2Demo01QuickstartKotlinApplication>(*args)
    println("运行 ...")
    println("App runs ...")
}

